<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/enterprise/enterpriseMember/subMemberAmountRecord.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>企业会员</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>余额记录</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });


    var has_add = 'hidden';
    var has_edit = 'hidden';
    var has_delete = 'hidden';
</script>

<%--<div shiro:hasPermission="sys:menu:add">--%>
<script type="text/javascript">
    has_add = '';
</script>
<%--</div>--%>
<%--<div shiro:hasPermission="sys:user:edit">--%>
<script type="text/javascript">
    has_edit = '';
</script>
<%--</div>--%>
<%--<div shiro:hasPermission="sys:user:remove">--%>
<script type="text/javascript">
    var has_delete = '';
</script>
<%--</div>--%>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <input id="memberId" name="memberId" type="hidden" class="form-control"
                           value="${memberId}">
                    <div class="pull-left search col-md-2">
                        <select id="accountType" name="accountType" class="form-control">
                            <option value="1">企业钱包</option>
                            <option value="0">个人钱包</option>
                            <option value="2">共享钱包</option>
                        </select>
                        <input id="startTime" name="startTime" type="text" class="form-control"
                               placeholder="开始时间">
                    </div>
                    <%--记录类型(0会员在线充值,1支出,2转账收入,3转账支出,4后台订单调整,5平台赠送,
                    6积分兑换 7回收金额 8平台钱包充值 9分销返利 10资源占用费 11平台扣费 12 数据迁移)--%>
                    <div class="pull-left search col-md-2">
                        <select id="recordType" name="recordType" class="form-control">
                            <option value="">记录类型</option>
                            <option value="0">会员在线充值</option>
                            <option value="1">充电支出</option>
                            <option value="8">平台钱包充值</option>
                            <option value="11">平台扣费</option>
                            <option value="3">企业账号分配</option>
                            <option value="7">企业钱包回收</option>
                            <option value="7">共享额度变更</option>
                        </select>
                        <input id="endTime" name="endTime" type="text" class="form-control"
                               placeholder="结束时间">
                    </div>
                    <div class="pull-left search col-md-2">
                        <input id="localTradeNo" name="localTradeNo" type="text" class="form-control"
                               placeholder="本地订单号">
                    </div>
                    <div class="pull-left search col-md-2">
                        <button class="btn btn-success" onclick="subMemberAmountRecord.reLoad()">查询</button>
                    </div>
                    <div class="pull-left search fr exportNumInput">
                        <input id="count" name="count" type="text" class="form-control" autocomplete="off"
                               placeholder="导出条数">
                    </div>
                    <div class="pull-left search fr">
                        <button class="btn btn-success exportBtn"
                                onclick="subMemberAmountRecord.exportSubMemberAmountRecord()">导出
                        </button>
                    </div>
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>
</div>
<script type="text/javascript">

    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var startTime = laydate.render({
            elem: '#startTime',

            type: 'datetime',
            format: 'yyyy-MM-dd HH:mm:ss',
            trigger: 'click',
            done: function (value, dates) {
                endTime.config.min = {
                    year: dates.year,
                    month: dates.month - 1, //关键
                    date: dates.date,
                    hours: 0,
                    minutes: 0,
                    seconds: 0
                };
            }
        });
        var endTime = laydate.render({
            elem: '#endTime',
            type: 'datetime',
            format: 'yyyy-MM-dd HH:mm:ss',
            trigger: 'click'
        });

    });


    subMemberAmountRecord.init();
</script>
</body>
</html>